﻿@using GTAuto.DAL.DAL
@{
    int count;
    var cats = DALFirmCategory.Singleton.GetPaged(1, 10000, out count);
    int brandId = (int) Session["CurFirmCategory"];
}
 <div id="prodaja">
        <div class="prodaja_title">
            Каталог фирм</div>
        <div class="left_menu_modeli">
            <ul>
                @foreach (var cat in cats)
                {
                    string clas = "";
                    if (cat.Id == brandId)
                    {
                        clas = "active";
                    }
                    <li class="@clas"><a href=@Url.Action("FirmsByCat", "Firms", new { @id = cat.Id })><span>@cat.Name</span> </a></li>
                }
                
            </ul>
            <div class="clear">
            </div>
        </div>
    </div>